package com.vogue.supplymall.shop.domain.model;

import javax.persistence.Entity;
import javax.persistence.Table;

import java.io.Serializable;
import java.math.BigDecimal;
import java.util.Date;

/**
 * The type Product price.
 * 商品价格
 */
@Entity
@Table(name = "product_price")
public class ProductPrice extends TendBaseEntity implements Serializable{
    
    /**
	 * 
	 */
	private static final long serialVersionUID = 8646398818307065522L;

	private Long syscodeid;

    /**
     * 是否面向全部买家（0否  1是）
     */
    private Boolean allflag;

    /**
     * 针对某个买家的特殊id（商城里的记录id）
     */
    private Long oneid;

    /**
     * 商品id
     */
    private Long productid;

    /**
     * 属性搭配方案id
     */
    private Long attrplanid;

    /**
     * 单价
     */
    private BigDecimal price;

    /**
     * 价格生效有效期开始日期
     */
    private Date begindate;

    /**
     * 价格生效有效期结束日期
     */
    private Date enddate;

    /**
     * Gets syscodeid.
     *
     * @return the syscodeid
     */
    public Long getSyscodeid() {
        return syscodeid;
    }

    /**
     * Sets syscodeid.
     *
     * @param syscodeid the syscodeid
     */
    public void setSyscodeid(Long syscodeid) {
        this.syscodeid = syscodeid;
    }

    /**
     * Gets allflag.
     *
     * @return the allflag
     */
    public Boolean getAllflag() {
        return allflag;
    }

    /**
     * Sets allflag.
     *
     * @param allflag the allflag
     */
    public void setAllflag(Boolean allflag) {
        this.allflag = allflag;
    }

    /**
     * Gets oneid.
     *
     * @return the oneid
     */
    public Long getOneid() {
        return oneid;
    }

    /**
     * Sets oneid.
     *
     * @param oneid the oneid
     */
    public void setOneid(Long oneid) {
        this.oneid = oneid;
    }

    /**
     * Gets productid.
     *
     * @return the productid
     */
    public Long getProductid() {
        return productid;
    }

    /**
     * Sets productid.
     *
     * @param productid the productid
     */
    public void setProductid(Long productid) {
        this.productid = productid;
    }

    /**
     * Gets attrplanid.
     *
     * @return the attrplanid
     */
    public Long getAttrplanid() {
        return attrplanid;
    }

    /**
     * Sets attrplanid.
     *
     * @param attrplanid the attrplanid
     */
    public void setAttrplanid(Long attrplanid) {
        this.attrplanid = attrplanid;
    }

    /**
     * Gets price.
     *
     * @return the price
     */
    public BigDecimal getPrice() {
        return price;
    }

    /**
     * Sets price.
     *
     * @param price the price
     */
    public void setPrice(BigDecimal price) {
        this.price = price;
    }

    /**
     * Gets begindate.
     *
     * @return the begindate
     */
    public Date getBegindate() {
        return begindate;
    }

    /**
     * Sets begindate.
     *
     * @param begindate the begindate
     */
    public void setBegindate(Date begindate) {
        this.begindate = begindate;
    }

    /**
     * Gets enddate.
     *
     * @return the enddate
     */
    public Date getEnddate() {
        return enddate;
    }

    /**
     * Sets enddate.
     *
     * @param enddate the enddate
     */
    public void setEnddate(Date enddate) {
        this.enddate = enddate;
    }

}